package com.htjx.mall.commons.models.product;

import java.math.BigDecimal;
import java.util.Date;

/**
 * 
 * @author Administrator
 * 商品品类的规格， 比如：青岛啤酒有 罐装，瓶装，瓶装又有不容的容量
 */
public class Specification {
	/** id **/
	private long id;
	/** 对应的商品品类 id **/
	private long catalog_id;
	/** 名称 **/
	private String name;
	/** 商品图片 **/
	private String image;
	/** 商品价格 **/
	private BigDecimal price = BigDecimal.ZERO;
	/** 商品实际价格 **/
	private BigDecimal real_price = BigDecimal.ZERO;
	/** 换算成RMB报价**/
	private BigDecimal rmb_real_price = BigDecimal.ZERO;
	/** 数量 **/
	private int quantity;
	/** 累计进货数量 **/
	private int total_in;
	/** 累计卖出数量 **/
	private int total_out;
	/** 创建时间 **/
	private Date create_time;
	/** 是否激活 **/
	private boolean active;
	/** 是否为虚拟商品，虚拟商品不需要走快递流 **/
	private boolean virtual;
	
	public long getId() {
		return id;
	}
	public void setId(long id) {
		this.id = id;
	}
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	
	public Date getCreate_time() {
		return create_time;
	}
	public void setCreate_time(Date create_time) {
		this.create_time = create_time;
	}
	
	public String getImage() {
		return image;
	}
	public void setImage(String image) {
		this.image = image;
	}

	public long getCatalog_id() {
		return catalog_id;
	}
	public void setCatalog_id(long catalog_id) {
		this.catalog_id = catalog_id;
	}
	public BigDecimal getPrice() {
		return price;
	}
	public void setPrice(BigDecimal price) {
		this.price = price;
	}
	public BigDecimal getReal_price() {
		return real_price;
	}
	public void setReal_price(BigDecimal real_price) {
		this.real_price = real_price;
	}
	public BigDecimal getRmb_real_price() {
		return rmb_real_price;
	}
	public void setRmb_real_price(BigDecimal rmb_real_price) {
		this.rmb_real_price = rmb_real_price;
	}
	public int getQuantity() {
		return quantity;
	}
	public void setQuantity(int quantity) {
		this.quantity = quantity;
	}
	public int getTotal_in() {
		return total_in;
	}
	public void setTotal_in(int total_in) {
		this.total_in = total_in;
	}
	public int getTotal_out() {
		return total_out;
	}
	public void setTotal_out(int total_out) {
		this.total_out = total_out;
	}
	public boolean isActive() {
		return active;
	}
	public void setActive(boolean active) {
		this.active = active;
	}
	public boolean isVirtual() {
		return virtual;
	}
	public void setVirtual(boolean virtual) {
		this.virtual = virtual;
	}
}
